<?php
/**
 * Created by PhpStorm.
 * User: River
 * Date: 2021/1/4
 * Time: 上午11:31
 */

namespace App\Utils;

use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\ApplicationContext;

class Logger
{
    public static function get(string $name = 'default')
    {
        return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($name);
    }
}
